package com.mgetool.ui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Composite;

import com.mgetool.ui.page.PageManager;

public class CanvasScrolledComposite extends ScrolledComposite {

	private boolean isAlive;
	//刷新间隔时间 毫秒
	public static int delay = 50;
	/**
	 * page管理类
	 */
	private PageManager pageManager;
	
	private Canvas canvas;
	
	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public CanvasScrolledComposite(Composite parent, int style) {
		super(parent, style);
		setLayout(new FillLayout());
		
		Composite composite = new Composite(this, SWT.NONE);
		composite.setLayout(new FillLayout(SWT.HORIZONTAL));
		setContent(composite);
		setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
		
	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
